package visitor.car;

public class CarElementPrinterVisitor implements CarElementVistor {

	@Override
	public void vist(Wheel wheel) {
		System.out.println("Visting wheel: " + wheel.getName());
	}

	@Override
	public void vist(Engine engine) {
		System.out.println("Visting engine");
	}

	@Override
	public void vist(Body body) {
		System.out.println("Visiting boday");
	}

	@Override
	public void vist(Car car) {
		System.out.println("Visiting car");
	}

}
